#include "mythread.h"
#include <QDebug>
#include "system_setting/system_setting.h"
void MyThread::run()
{
    while(!stopped)
    {
        msleep(50);
        updateTimeLabel(pendantInterfaceInformation.realTime);
        if(ispendantInterfaceDataChange())
        {
            pendantInterfaceInformation.pageName->setText(pendantInterfaceData.pageName);
            pendantInterfaceInformation.codeFileName->setText(pendantInterfaceData.codeFileName);
            pendantInterfaceInformation.actionMode->setText(pendantInterfaceData.actionMode);
        }

    }
    stopped = false;
}

void MyThread::stop()
{
    stopped = true;
}
